package com.group01.service;

import com.group01.dto.Address.AddressInsertInfoDTO;
import com.group01.dto.Address.AddressUpdateInfoDTO;
import com.group01.pojo.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group01.result.Result;
import com.group01.vo.Address.AddressGetInfoVO;

import java.util.List;

/**
* @author 19559
* @description 针对表【es_address(收货地址表)】的数据库操作Service
* @createDate 2024-06-23 10:14:14
*/
public interface AddressService extends IService<Address> {

    Result<List<AddressGetInfoVO>> getAddressList();

    Result<String> addAddress(AddressInsertInfoDTO addressInsertInfoDTO);

    Result<String> updateAddress(AddressUpdateInfoDTO addressUpdateInfoDTO);

    Result<String> setDefault(Integer addressId);

    Result<String> cancelDefault(Integer addressId);

    Result<String> deleteAddress(Integer id);
}
